layui.use(['element','layer'], function() {
    var $ = layui.jquery,element = layui.element,layer=layui.layer;

    var create=parse("user");//从localStorage里取值

    var mid=create.userId;


    //获取数据
    $.ajax({
        url : "/Navigation/selLoginLog",
        type : "post",
        dataType : "json",
        data : {"id":mid},
        success : function(data) {
            $(".dept_class").html(data.data[0].dept)
            $(".location_ip").html( data.data[0].login_location+data.data[0].login_ip)
            $(".login_date").html(getDate(data.data[0].login_date))
        }
    })
})